package com.wocao.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wocao.entity.ReqBody;
import com.wocao.entity.ZyCommunityInteraction;
import com.wocao.mapper.ZyCommunityInteractionMapper;
import com.wocao.service.ZyCommunityInteractionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 社区互动表 服务实现类
 */
@Service
public class ZyCommunityInteractionServiceImpl extends ServiceImpl<ZyCommunityInteractionMapper, ZyCommunityInteraction> implements ZyCommunityInteractionService {

    @Autowired
    private ZyCommunityInteractionMapper interactionMapper;

    //查询+搜索
    @Override
    public Page<ZyCommunityInteraction> allPage(Page<ZyCommunityInteraction> page, ReqBody reqBody) {
        return interactionMapper.allPage(page,reqBody);
    }

    public List<ZyCommunityInteraction> getCommunityInteractionMap(ZyCommunityInteraction zyCommunityInteraction){
        return interactionMapper.getCommunityInteractionMap(zyCommunityInteraction.getInteractionId());
    }

}
